import request from '@/utils/request';

// 知识库搜索接口
export const searchKnowledge = (data: {
  question: string
  topk: number
  filter_nodes: string[]
  filter_mode: string
  filter_type: number
  show_image: boolean
  rerank: string
  ask: boolean
  ask_multimodal: boolean
  ask_agent: boolean
}): Promise<any> => {
  return request({
    url: '/kb/search',
    method: 'post',
    data: data
  });
};
